package com.getui.java.advancedpushmessage;

import com.getui.java.COMM;
import com.gexin.rp.sdk.base.IAliasResult;
import com.gexin.rp.sdk.http.IGtPush;

public class AliasFunction4 {
	static String Alias = "个推";

	public static void AliasUnBind() throws Exception {
		IGtPush push = new IGtPush(COMM.host, COMM.appKey, COMM.masterSecret);

		IAliasResult AliasUnBind = push.unBindAlias(COMM.appId, "aliastest", COMM.CID);
		System.out.println("解除绑定结果:" + AliasUnBind.getResult());

		AliasUnBind = push.unBindAlias(COMM.appId, Alias, COMM.CID);
		System.out.println("解除绑定结果:" + AliasUnBind.getResult());
	}

	public static void main(String[] args) {
		try {
			AliasUnBind();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}